package cn.com.bob.library.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName book_type
*/
@Data
public class BookType implements Serializable {

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer categoryId;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String categoryName;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer quantity;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String remark;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date createTime;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date modifyTime;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String createUsername;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String modifyUsername;

    public BookType(Integer categoryId, String categoryName, Integer quantity, String remark, Date createTime, Date modifyTime, String createUsername, String modifyUsername) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.quantity = quantity;
        this.remark = remark;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
        this.createUsername = createUsername;
        this.modifyUsername = modifyUsername;
    }

    public BookType() {
    }



}
